package com.ydche.service;

import com.ydche.idl_output.CarInfoByLicenseResp;
import com.ydche.idl_output.CarInfoByVinResp;
import com.ydche.idl_output.CarModelResp;
import com.ydche.idl_output.FuzzyCarBrandResp;
import org.springframework.stereotype.Service;

@Service
public interface ICarInfoService {

    Long addCarprofile(Long userId, Long customerId, String licenseNo, String vinNo, String engineNo, String registerDate,
                       boolean isTran ,String transDate, String brandCode, String cityCode);

    void updateCarLicenseImg(Long id, String licenseImgFace, String licenseImgBack);


    Long saveCarProfile(Long userId, Long customerId, String licenseNo, String vinNo, String engineNo, String registerDate,
                        boolean isTran ,String transDate, String brandCode, String cityCode);
    /**
     * 车牌获取车型和车辆信息
     * @param licenseNo
     * @return
     */
    CarInfoByLicenseResp getCarInfoByLicense(String licenseNo);

    /**
     * 车架号获取车辆信息
     * @param vinNo
     * @return
     */
    CarInfoByVinResp getCarInfoByVinNo(String vinNo);

    /**
     * 模糊查询车型
     * @param brandName
     * @param page
     * @param row
     * @return
     */
    FuzzyCarBrandResp getFuzzyCarBrand(String brandName, String page, String row);

    CarModelResp getCarModel(String licenseNo, String frameNo);
}
